axum routing Router
- description
- No value
- aliases
- No value
- tags
- No value
- created
- 2023-04-18T17:52:04
- updated
- 2023-07-15T21:30:21
- title
- axum routing Router
axum::routing::Router- router type can compose handler(methods) and services.
let routes = Router::new().route(
"/hello", // path
axum::routhing::get(|| async { // method router
Html("hello world")
}),
);
- get can handle router handler as
GETmethod